-
Notifications
You must be signed in to change notification settings - Fork 15
chore: publish the Rust docs to Netlify #180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…elin-relayer into rust-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested a minor change
.github/workflows/release-docs.yml
Outdated
run: | | ||
MAJOR_MINOR="${{ steps.validate_tag.outputs.MAJOR }}-${{ steps.validate_tag.outputs.MINOR }}" | ||
echo "Major and minor version extracted: $MAJOR_MINOR" | ||
sed -i '' -E "s|(https://)[^/]*openzeppelin-relayer\.netlify\.app|\1docs-v${MAJOR_MINOR}--openzeppelin-relayer.netlify.app|g" docs/modules/ROOT/nav.adoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets make sure to change it to release-v*
version on push to release branch and then on push to docs branch change it to docs-v*
.github/workflows/rc.yml
Outdated
major_minor_version=$(echo "${{ steps.get_version.outputs.version }}" | cut -d'.' -f1,2) | ||
echo "Major and minor version extracted: $major_minor_version" | ||
sed -i '' -E "s|(https://)[^/]*openzeppelin-relayer\.netlify\.app|\1release-v${major_minor_version}--openzeppelin-relayer.netlify.app|g" docs/modules/ROOT/nav.adoc | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add this in "on push" to release-v* branch add condition to check if it's release branch version prefix url for netlify if not update it? This workflow we can keep just strictly to create a release branch
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
=======================================
+ Coverage 86.6% 87.2% +0.6%
=======================================
Files 126 131 +5
Lines 28000 29747 +1747
=======================================
+ Hits 24265 25969 +1704
- Misses 3735 3778 +43
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
id: get_branch | ||
run: | | ||
echo "branch=${{ inputs.branch }}" >> $GITHUB_OUTPUT | ||
- name: Update the technical docs link in nav.adoc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use some kind of redirection instead of updating nav.adoc file every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will have different deployment url with every deploy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, each deploy will have a different prefix on the url(e.g release-v1, release-v2, docs-v1 etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do it without modifying file?
Maybe to always point to single url and in the background to redirect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now, just going to replace the file. Next iteration we can add cloudflare and make redirection in the backend from github actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary
chore: publish rust docs to Netlify
Testing Process
Checklist